package org.grottarossa.ui.core;

/***
 * Rapppresenta la posizione di un campo sul layout di una form
 * @author 
 *
 */
public class FormFieldLocation
{
	private final int startRow;
	private final int startCol;
	private final int endRow;
	private final int endCol;

	public FormFieldLocation(int row, int col)
	{
		this.startRow = row;
		this.startCol = col;
		this.endRow = row;
		this.endCol = col;
	}

	public FormFieldLocation(int startRow, int startCol, int endRow, int endCol)
	{
		this.startRow = startRow;
		this.startCol = startCol;
		this.endRow = endRow;
		this.endCol = endCol;
	}

	public int getStartRow()
	{
		return startRow;
	}

	public int getStartCol()
	{
		return startCol;
	}

	public int getEndRow()
	{
		return endRow;
	}

	public int getEndCol()
	{
		return endCol;
	}
}
